package com.woniu.smallmedical.mapper;

import com.woniu.smallmedical.entity.MedicineDiarys;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MedicineDiarysMapper {



    //分页查所有药
    List<MedicineDiarys> selectAll(@Param("pageIndex") Integer pageIndex,
                                   @Param("pageSize") Integer pageSize);
    //查询所有条数
    int selectcount();
    //增加药品
    void insertmessage(Integer numbers, String nickname, String perscription, String factory, String medicineclassify, String medicinespecs, String medicineformulations, String unit,  Double purchase, Double retail, String usages, Integer Dosage,  String remark, Integer state,Integer count);
    //通过Id查信息
    MedicineDiarys selectById(int smid);
    //查询编号
    List<MedicineDiarys> SelctNumber(String nickname);

        //修改状态
    void update(Integer smid);
    //调价
    void updateDiarys(Integer smid,Double retail,Integer count);
    //查次数
    Integer selectDiarys(Integer smid);
}
